#undef BLENDCOLOR
#undef BLENDPIXEL

#define BLENDCOLOR MAKE_BLENDCOLOR(BLEND_MODE, )
#define BLENDPIXEL MAKE_BLENDPIXEL(BLEND_MODE, )

BOOL BLENDCOLOR(PBITMAP lpbDst, xARGB x)
{
    LPBYTE lpScanLine = (LPBYTE)lpbDst->bmBits;
    for (int j = lpbDst->bmHeight; j > 0; j--)
    {
        LPXARGB lpPixel = (LPXARGB)lpScanLine;
        for (int i = lpbDst->bmWidth; i > 0; i--)
        {
            BLENDPIXEL(lpPixel, x);
            lpPixel++;
        }

        lpScanLine += lpbDst->bmWidthBytes;
    }
    return TRUE;
}